package com.pic.others.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author koshi
 * @since 2023-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("recyle")
public class Recyle implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 回收id
     */

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "recyle_id", type = IdType.ASSIGN_ID)
    private Long recyleId;

    /**
     * 图片id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long picId;

    /**
     * 删除时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(value = "date_time", fill = FieldFill.INSERT)
    private LocalDateTime dateTime;

    /**
     * 回收时间
     */
    @TableField(value = "recyle_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime recyleTime;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    String locate;

    //图片被导入的时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime date;
}
